<?php die;?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>miceCMS,觅策企业网站管理系统</title>
<link href="css/default.css" rel="stylesheet" type="text/css">
<link href="css/fieldset.css" rel="stylesheet" type="text/css">
<script type='text/javascript' src='js/error.js'></script>
<script type='text/javascript' src='js/calendar.js'></script>
<script type='text/javascript' src='js/ShowMessage.js'></script>
<script language="JavaScript">
function CheckForm()
{
 if (document.form1.title.value.length == 0)
 {
  alert("标题不能为空！");
  document.form1.title.focus();
  return false;
 } 
  return true;
}
</script>
</head>

<body>
<!--{include file="admin/upload_div.php"}-->
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" >
	<form id="form1" name="form1" action="<!--{$formaction}-->" method="post" onsubmit="return CheckForm()">
	<tr>
		<td width="100%" valign="top">
			<fieldset class="adminform">
				<legend>投票选项</legend>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
						<td width="100" class="keyred" height='20'>标　题:</td>
						<td colspan="2">
							<input name='pollcategory_id' id='pollcategory_id' type='hidden' value='<!--{$results->getPollcategoryId()}-->'>
							&nbsp;<input name='title' id='title' type='text' size='50' value='<!--{$results->getTitle()}-->'>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>投票权限:</td>
						<td colspan="2">
							&nbsp;<select name="group_id">
							<option value='0' <!--{if $results->getGroupId()==0}-->selected<!--{/if}-->>匿名用户</option>
							<!--{foreach from=$groups item=group}-->
								<option value='<!--{$group->getGroupId()}-->' <!--{if $group->getGroupId()==$results->getGroupId()}-->selected<!--{/if}-->><!--{$group->getName()}--></option>
							<!--{/foreach}-->
							</select>
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>点　数:</td>
						<td colspan="2">
							&nbsp;<input name='pointnum' id='pointnum' type='text' size='15' value='<!--{$results->getPointnum()}-->'>&nbsp;(参加投票奖励的点数)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>最多可同时选取:</td>
						<td colspan="2">
							&nbsp;<input name='checks' id='checks' type='text' size='15' value='<!--{$results->getChecks()}-->'>&nbsp;项(0表示不限制,可全选)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>开始时间:</td>
						<td colspan="2">
							&nbsp;<input name='startdate' id='startdate' type='text' size='15'  value="<!--{$startdate}-->"  onClick="setDayHM(this);">&nbsp;(0表示不限制)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>截止时间:</td>
						<td colspan="2">
							&nbsp;<input name='stopdate' id='stopdate' type='text' size='15'  value="<!--{$stopdate}-->"  onClick="setDayHM(this);">&nbsp;(0表示不限制)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>投票间隔时间:</td>
						<td colspan="2">
							&nbsp;<select name="times">
							<option value='60' <!--{if $results->getTimes()==60}-->selected<!--{/if}-->>1分钟</option>
							<option value='3600' <!--{if $results->getTimes()==3600}-->selected<!--{/if}-->>1小时</option>
							<option value='86400' <!--{if $results->getTimes()==86400}-->selected<!--{/if}-->>1天</option>
							<option value='1296000' <!--{if $results->getTimes()==1296000}-->selected<!--{/if}-->>15天</option>
							<option value='31104000' <!--{if $results->getTimes()==31104000}-->selected<!--{/if}-->>1年</option>
							</select>&nbsp;(同一个IP两次投票的间隔时间)
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>启用:</td>
						<td colspan="2">
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="0" <!--{if $results->getIsvisible()==0}-->checked<!--{/if}-->/>是
							&nbsp;<input name='isvisible' id='isvisible' type="radio" value="1" <!--{if $results->getIsvisible()==1}-->checked<!--{/if}-->/>否
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>查看结果:</td>
						<td colspan="2">
							&nbsp;<input name='isopen' id='isopen' type="radio" value="0" <!--{if $results->getIsopen()==0}-->checked<!--{/if}-->/>允许
							&nbsp;<input name='isopen' id='isopen' type="radio" value="1" <!--{if $results->getIsopen()==1}-->checked<!--{/if}-->/>不允许
						</td>
					</tr>
					<tr>
						<td width="100" class="key" height='20'>说　明:</td>
						<td colspan="2">
							<!--{$editor}-->
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D5D5D5">
	<tr > 
		<td bgcolor="#F9F9F9" height="30" valign='middle'>
			&nbsp;&nbsp;<label><input type="checkbox" name="goon" id="goon" value="1">保存后继续添加</label>&nbsp;&nbsp;<input type="submit" value="保存[S]" accesskey="s"/>&nbsp;<input type="reset" value="重置[R]" accesskey="r"/>&nbsp;<input type="button" onclick="javascript:history.back(-1)" value="返回[B]" accesskey="b"/>
		</td>
	</tr>
	</form>
</table>
<br>
</body>
</html>